<div class='box' style='min-width:500px;margin:20px;'>
	<div class='filter silver cap'>
		Reference Quick View
	</div>
	<table class="form2c">
		<tr >
			<th >
				Code
			</th>
			<td >
				<?php echo 'WM'.str_pad($rs->id,3,'0',STR_PAD_LEFT); ?>
			</td>
		</tr>
		<tr >
			<th >
				Name
			</th>
			<td >
				<?php echo $rs->name ?>
			</td>
		</tr>
		<tr >
			<th >
				Year
			</th>
			<td >
				<?php echo $rs->year ?>
			</td>
		</tr>
		<tr >
			<th >
				Type
			</th>
			<td >
				<?php echo Yii::app()->params['flag']['referenceType'][$rs->reference_type_id] ?>
			</td>
		</tr>
		<tr >
			<th >
				Price
			</th>
			<td >
				RM <?php echo number_format($rs->price,2) ?>
			</td>
		</tr>
		<tr >
			<th >
				album
			</th>
			<td >
				<?php echo $rs->album->name ?>
			</td>
		</tr>
		<tr >
			<th >
				Created
			</th>
			<td >
				By 
				<?php 
					$users = Fish::getRow('user',$rs->user_create);
					echo  $users['name']
				?> At [
					<?php echo $rs->date_create ?>
				]
			</td>
		</tr>
	</table>
	<div class='filter blue tail'>
		<?php
			$label = '<button class="bt3">Edit</button>';
			$rurl= array('admin/update','id'=>$rs->id);
			$htmlOption = array();
			echo CHtml::link($label,$rurl,$htmlOption);
		?>
	</div>
</div>